/**
 * 货品维护
 * @author xiaoxujs
 */

import { basicIp, newHttpService } from "../../../api/http"
import { IPlanInsertGoodsParams, IPlanQueryGoodsParams, IPlanUpdateGoodsParams } from "../../../type/productMaintenance";

// 查询货品列表
export const getPlanQueryGoods = (data?: IPlanQueryGoodsParams ) => {
    const url = basicIp + '/plan/queryGoods';
    return newHttpService.getData(url, data)
}
//   添加货品
export const getPlanInsertGoods = (data: IPlanInsertGoodsParams) => {
    const url = basicIp + '/plan/insertGoods';
    return newHttpService.getData(url, data)
}
//  修改货品
export const postPlanUpdateGoods = (data: IPlanUpdateGoodsParams ) => {
    const url = basicIp + '/plan/updateGoods';
    return newHttpService.postData(url, data)
}
// 删除货品
export const getPlanDeleteGoods = (data: {id: string}) => {
    const url = basicIp + '/plan/deleteGoods';
    return newHttpService.getData(url, data)
}